home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / TFC030.422 < prev    next >
Text File  |  1993-03-20  |  2KB  |  61 lines

  1. 2TFC030.MOD1 Allow ALT-0 thru ALT-9 for WWIV macros!
  2. The Flying Chicken [SysOp] #1 @12456
  3. 3Friday, March 19, 1993  1 6:02 pm
  4. TFC030.MOD - Allow ALT-0 thru ALT-9 Macros
  5. Author : The Flying Chicken
  6. Source : WWIV 4.20-4.22
  7. Version: 1.0
  8.  
  9.     I always wanted to be able to set up N*.NET files up under alt-#
  10.     keys, but Wayne does not allow ALT-0 thru ALT-9 for macros.  This
  11.     mod changes that, giving you 10 more macros to play with.  Now, I
  12.     have subtype ALT-1 set up to edit N12456.NET, ALT-2 for N22456.NET,
  13.     etc... a great way to add folks from your read-mail prompts.
  14.  
  15.     v1.0 - Initial version written
  16.  
  17.     This is a fairly simple mod, so let's get right into it.
  18.  
  19.     1. Load up CONIO.C.  Search for 'char xlate[' and replace your code
  20.        with the block below, or make the changes indicated.
  21.  
  22. char xlate[] = {
  23.   'Q','W','E','R','T','Y','U','I','O','P',0,0,0,0,
  24.   'A','S','D','F','G','H','J','K','L',0,0,0,0,0,
  25.   'Z','X','C','V','B','N','M','1','2','3','4','5',              /* CHANGE */
  26.   '6','7','8','9','0',                                          /* ADD */
  27. };
  28.  
  29.  
  30.     2. Search for the scan_to_char() function, and replace it with the
  31.        one below.
  32.  
  33. char scan_to_char(unsigned char ch)                         /* REPLACE FCN */
  34. {
  35.   if ((ch>=16) && (ch<=50))
  36.     return(xlate[ch-16]);
  37.   else {
  38.     if ((ch>=120) && (ch<=129))
  39.       return(xlate[ch-85]);
  40.     else
  41.       return(0);
  42.   }
  43. }
  44.  
  45.     Before using this or any mod, back up your source !!!!!
  46.  
  47.                 PKZIP source *.c *.h *.mak
  48.  
  49.     If you mess something up later and want to unstall the mod,
  50.     just type:
  51.  
  52.                 PKUNZIP source -o
  53.  
  54.  
  55.     DISCLAIMER:  I make no guarantees with this mod whatsoever.
  56.     Your installation of the mod is your acceptance of any
  57.     damages caused to your hardware or software, incendental or
  58.     otherwise.
  59.  
  60.     PLEASE REPORT ANY BUGS!
  61.